/**
 * 
 */
package com.aizhixin.lab.task.core;

/**
 * 题型（单选10、多选20、判断30）
 * @author liang.jia
 *
 */
public enum ExerciseType {
	SINGLE(10),//单选
	MULTIPLE(20),//多选
	JUDGMENT(30),//判断
	FILLINBLANKS(40),//论述题
	FIGUREUP(50), //计算
	PROGRAM(60),//在线编程
	QUESTION(70),//简答
	DRAWING(80),//画图
	OTHER(90);//其他
	private Integer intValue;
	private String strValue;
	
	ExerciseType(Integer state) {
		this.intValue = state;
		switch(state) {
		case 10:
			this.strValue = "单选题";
			break;
		case 20:
			this.strValue = "多选题";
			break;
		case 30:
			this.strValue = "判断题";
			break;
		case 40:
			this.strValue = "论述题";
			break;	
		case 50:
			this.strValue = "计算题";
			break;
		case 60:
			this.strValue = "编程题";
			break;	
		case 70:
			this.strValue = "简答题";
			break;	
		case 80:
			this.strValue = "画图题";
			break;
		case 90:
			this.strValue = "其他";
			break;	
		default:
			this.intValue = 100;
			this.strValue = "下架";
		}
	}

	public Integer getIntValue() {
		return intValue;
	}
	public String getStrValue() {
		return strValue;
	}
}
